<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>

</head>
<body>
<h1>我的第一个 JavaScript</h1>
<input id="name">
<p id="demo">
    JavaScript 点击按钮给你变一个魔术！
</p>
<script>
    function f() {
        x=document.getElementById("demo");
        x.innerHTML = "顾淇你个大傻逼";
    }
    function f1() {
        document.write(Date());
    }
</script>
<button type="button" onclick="f()">点我!点我！</button>
<button type="button" onclick="f1()">试试这个</button>


</body>
</html>